package org.csu.code.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
@TableName("farm")
public class Farm {
    @TableId(value = "farmid",type = IdType.INPUT)
    private int farmId;
    @TableField(value = "userid")
    private int userId;
    private String name;
    private String address;
    private Double area;
    @TableField(value = "leftarea")
    private Double leftArea;
    private String img;
    private String crops;
    private String latitude;
    private String longitude;
    private Double temperature;
    private Double humidity;
}
